// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables

import 'package:flutter/material.dart';

class BaseLayoutVC extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('基础布局'),
        ),
        body: ListView(
          children: [
            Text(
              '《定风波》 苏轼 \n莫听穿林打叶声，何妨吟啸且徐行。\n竹杖芒鞋轻胜马，谁怕？一蓑烟雨任平生。',
              textAlign: TextAlign.center,
              style: TextStyle(fontSize: 20, color: Colors.purple),
            ),
            Divider(
              height: 1.0,
              indent: 1.0,
              color: Colors.green,
            ),
            Text.rich(
              TextSpan(
                children: [
                  TextSpan(
                      text: '《定风波》',
                      style: TextStyle(
                          fontSize: 25,
                          color: Colors.black,
                          fontWeight: FontWeight.bold)),
                  TextSpan(
                      text: '苏轼',
                      style: TextStyle(
                        fontSize: 15,
                        color: Colors.red,
                      )),
                  TextSpan(text: '\n莫听穿林打叶声，何妨吟啸且徐行。\n竹杖芒鞋轻胜马，谁怕？一蓑烟雨任平生。'),
                ],
              ),
              textAlign: TextAlign.center,
              style: TextStyle(fontSize: 25, color: Colors.purple),
            ),
            Divider(
              height: 1.0,
              indent: 1.0,
              color: Colors.green,
            ),
            FloatingActionButton(
              child: Text('FloatingActionButton'),
              onPressed: () {
                print("FloatingActionButton click");
              },
            ),
            RaisedButton(
              child: Text("RaisedButton"),
              onPressed: () {
                print("RaisedButton click");
              },
            ),
            OutlineButton(
              child: Text("OutlineButton"),
              onPressed: () {
                print("OutlineButton click");
              },
            ),
            FlatButton(
              child: Text("FlatButton"),
              onPressed: () {
                print("FlatButton click");
              },
            ),
            RaisedButton(
              child: Text(
                '隐私协议',
                style: TextStyle(color: Colors.white),
              ),
              color: Colors.orange,
              highlightColor: Colors.orange[700],
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(20)),
              onPressed: () {
                print("隐私协议 点击事件");
              },
            ),
            Divider(
              height: 1.0,
              indent: 1.0,
              color: Colors.green,
            ),
            Image.network(
              "http://img0.dili360.com/ga/M01/48/3C/wKgBy1kj49qAMVd7ADKmuZ9jug8377.tub.jpg",
              fit: BoxFit.contain,
              width: 300,
              height: 300,
            ),
            ClipRRect(
              borderRadius: BorderRadius.circular(100),
              child: Image.network(
                "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg",
                width: 300,
                height: 300,
              ),
            )
          ],
        ));
  }
}
